import http from "../utils/http";

//获取账套信息
function getAccount_sets(){
    return new Promise((resolve, reject) => {
        http("get",'/account/formula/queryAccount').then(res => {
            resolve (res);
            return;
        },error => {
            console.log("login error!~",error);
            reject(error)
        })
    })
}

function getAccounts(setId,year,tableName) {
    return new Promise((resolve, reject) => {
        http("get",'/account/formula/queryAccountInfo',{tableName:tableName,setId:setId,year:year}).then(res => {
            resolve (res);
            return;
        },error => {
            console.log("login error!~",error);
            reject(error)
        })
    })
}

export {getAccount_sets,getAccounts}

